enum dtype_node_define {
	TYPE(NODE_DEFINE)=0x3210
};
enum subtype_node_define {
	SUBTYPE(NODE_DEFINE,BASIC_INFO)=0x1,
	SUBTYPE(NODE_DEFINE,USER),
	SUBTYPE(NODE_DEFINE,CONFIG)
};

enum enum_node_type
{
	CENTER=0x01,
    NODE,
    CENTER_TERM,
    USER_TERM
};

enum enum_node_state
{
	NODE_WORKING=0x01,
    NODE_CONN,
    NODE_HALT,
    NODE_ERROR,
    NODE_UNKNOWN
};

typedef struct node_define_basic{
	char * node_name;
	BYTE node_uuid[32];
	UINT32 type;
}__attribute__((packed)) RECORD(NODE_DEFINE,BASIC_INFO);

typedef struct node_define_user{
	char * node_name;
	char * name;
	UINT32 role;
}__attribute__((packed)) RECORD(NODE_DEFINE,USER);

typedef struct node_define_config{
	char * node_name;
    int origin;
	int interval;
	UINT32 node_state;
    int alarm_lower;
    int alarm_upper;
}__attribute__((packed)) RECORD(NODE_DEFINE,CONFIG);

